home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4285 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <38232527@kone.fipnet.fi> <4gkrht$d5l@maureen.teleport.com>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Mon, 26 Feb 96 16:15:29 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Mon, 26 Feb 96 13:08:09 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Distribution: world
  13. Subject: Re: TMapping again!
  14. Message-ID: <38232665@kone.fipnet.fi>
  15.  
  16.  
  17. >  a mul?.w is 27, a muls.l is 43
  18. >  a divs.l is 90
  19.  
  20. Max. 90.. How about if the low word is zero? I think the
  21. amount of bits on influences the speed of a divide.
  22.  
  23. > -- what you do with muls.l is:
  24. > setup
  25. >         move.l  (a2,d0.w*4),d1  ;done upto 4 time per poly
  26. > opp:
  27. >     ext.l    d2
  28. >         muls.l  d1,d2         ; 2+43 * upto 15time = 675
  29. > -- with div:
  30. > setup
  31. >         ext.l   d0        ; done upto 4 time per poly
  32. > opp:
  33. >         swap    d2
  34. >         sub.w   d2,d2
  35. >     divs.l    d2,d0         ;4+2+90 * 15 = 1440
  36.  
  37. Yep, but the point is that my values are readily shifted
  38. to high word, and if I want to use muls.l 1/x table with 16.16,
  39. I have to clear the upper word, too.
  40.  
  41. >  You dont have to fall back to 15bit precision to gain the speed
  42. >  from mul VS div... using 15bit give you an extra 6.03 mcycle, or
  43. >  you could use mulu.w and adjust the sign?
  44.  
  45. Adjusting the sign .. naah..
  46.  
  47. >  Myself I will stick with 16:16 and muls.l on 68030 and under.
  48. >  a divs.l is ~2time slower then a muls.l and ~3.5 slower then a muls.w
  49. >  On a 68000 I would go with 15bit and muls + an add.l: 76 cycle... ouch
  50. >  but still less then a divs.l on a 030 ;) (To bad the 68000 mhz is so
  51. >  limited:)
  52.  
  53. A divide table would be the best in my case.. 512kB for a table.
  54. Oh yes, muls.w 15bit table and the add.l dx,dx.. quite clever..
  55.  
  56. But I still dont get your point; the divides dont matter
  57. very much in the frame rate..
  58.  
  59. --                               _
  60. a Stellar programmer          _ //
  61. "Amiga - back for the future" \X/
  62.